<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl() ;?>/public/css/dangnhap.css" media="screen" />
<script src="<?php echo $this->baseUrl() ;?>/public/scripts/validate/jquery.validate.js"></script>
<script src="<?php echo $this->baseUrl() ;?>/public/scripts/dangnhap.js"></script>

<div id="wrr-body-main">
<div class = "div_dangnhap" >
    
    <div class="title_email"> Hệ Thống Quản Lý Email  </div> <!-- titile project -->
    
    <div class="div_fomdangngap"> <!-- div from dang nhap -->
        

        <form action="<?php echo $this->baseUrl()?>/login/login" method="POST" name="login" onsubmit="return checkdangnhap();" >
            <table  class="table_login">
                <tr>
                    <td><label class="text_ten"> Tên đăng nhập </label></td>
                    <td>  <input class="input " type="text" name="tendn"  id="tendm"/></td>
                    <td > <img src="<?php echo $this->baseUrl(); ?>/public/images/user.png" /> </td>
                    <td> </td>
                    
                </tr>
                <tr>
                    <td><label class="text_ten"> Mật khẩu </label></td>
                    <td> <input class="input "  type="password" name="mk" id="mk" /> </td>
                    <td> <img src="<?php echo $this->baseUrl(); ?>/public/images/user_login.png" /> </td>
                    <td> <label onclick="dangkypopup();" class="dangkythanhvien"><a href="#">Đăng ký tài khoản </a></label><br />
                         <label onclick="popuplaylaipass();" class="quenmatkhau"> <a href="#">Quên mật khẩu </a></label>   
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <span class="input-dangnhap"><input type="submit" class="input" style="width: 100px;" value="Đăng nhập"  name="dangnhap"/></span>
                    </td>
                  
                </tr>                                
            
            </table>
            <div class="banquen"> © 2011 Power by: P1101L Emai Project   </div>
        </form>
    </div><!-- End div fom dang nhap -->
    
  
  
    
    <!-- dang ky thanh vien -->
    <div style="display: none;">
        <div id="dialog-form" title="Vui Lòng Đăng Ký Thành Viên Để Sử Dụng Hệ Thống  ">  
    	<div class="ten_danky"><h3>Thông tin cần thiết</h3></div>
    	<form method="post" onsubmit="return checkdanhky();" id="dangkyForm" name="dangkyForm" action="<?php echo $this->url() ?>/addtaikhoan/" >
    	
        <fieldset class="fieldset">
            <div class="row_1"> 
                <div class="ten_chu"><label for="name">Họ và tên đầy đủ </label></div>
                <div class="input_popup" ><input type="text" name="name" id="name_daydu" class="required text ui-widget-content ui-corner-all input" /></div>
            </div>
            
            <div class="row_1"> 
                <div class="ten_chu"><label for="name">Tên đăng nhập hệ thống </label></div>
                <div class="input_popup" ><input onblur="checktrungtendangnhap(this.value);" type="text" name="name_uname" id="name_uname" minlength ="6"  class="required text ui-widget-content ui-corner-all input" /><div  class="thongbaouser" id="thonbaoloi"><span id="chu"></span> </div></div>
            </div>
        
            
           <div class="row_1"> 
                <div class="ten_chu"><label for="password">Mật khẩu</label></div>
                <div class="input_popup" ><input type="password" name="password" id="password1"  minlength ="6"  class="required accept text ui-widget-content ui-corner-all input" /></div>
           </div>  
           <div class="row_1"> 
                <div class="ten_chu"><label for="password"> Nhập lại mật khẩu</label></div>
                <div class="input_popup" ><input type="password" name="password2" id="password2"  minlength ="6"  class="required  accept text ui-widget-content ui-corner-all input" /></div>
            </div>                                   
            
           <div class="row_1"> 
                <div class="ten_chu"><label for="email">Ðịa Chỉ Email</label></div>
                <div class="input_popup" ><input type="text" name="email1" id="email1" value="" class="required email text ui-widget-content ui-corner-all input" /></div>
           </div>
           
            
           <div class="row_1"> 
                <div class="ten_chu"><label for="email">Nhập lại địa chỉ Email</label></div>
                <div class="input_popup" ><input type="text" name="email2" id="email2" value="" class="required  email text ui-widget-content ui-corner-all input" /></div>
            </div>
              
           <div class="row_1"> 
                <div class="ten_chu" style="padding-top:15px;"><label for="email">Mã bảo vệ</label></div>
                <div class="input_popup" style="padding-bottom:10px;" >
                    <span id="capcha_rg"> <?php echo $this->captcha;?> </span>
                    <span>
                        <img id="loadccpro" style="display:none" src="<?php echo $this->baseUrl()?>/public/images/wpspin_light.gif"/>
                        <img id="prresscapcha" onclick="preshcapcha();" src="<?php echo $this->baseUrl()?>/public/images/icon/icon-32-purge_01.png" title="Thay hình khác" />
                    </span>
                </div>
           </div>  
           <div class="row_1"> 
                <div class="ten_chu" >
                <label for="email" > Nhập mã bảo vệ </label >
           </div>
                <div class="input_popup" >
                <input type="text" name="mabaovenhap" id="mabaovenhap" value="" class="required text ui-widget-content ui-corner-all input" />
                </div>
           		<input type="hidden" id="mabaove" value="<?php echo $this->captchaID ;?>" />
           		<input type="hidden" id="mabaoveWord" value="<?php echo $this->capchaWord ;?>" />
           		<input type="hidden" id="url" name="url" value="<?php echo $this->baseUrl();?>" />
            </div> 
          
                       
         </fieldset>             
           <div class="row_1"> 
                <div class="nut_dang_ky"> 
                     <span  > <input type="submit"  value=" Hoàn tất đăng ký " class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" /></span>
                    <input type="reset"  value="Nhập lại" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                </div>
           </div>           
    
    	</form>
        </div>    
    </div>
    <!-- end dang ky thanh vien  -->
    
    <!--  popup quen mat khau  -->
    <div id ="popup_quenmatkhau" style="display:none;" title="Xác thực quên mật khẩu">
    		<div class="thongbao_laylaipass">Vui lòng điền tên tài khoản mà bạn đã đăng ký. Một dấu hiệu xác nhận sẻ gởi cho bạn. Khi bạn nhận được dấu hiệu, bạn mới có thể đổi mật khẩu cho tài khoản. </div>
    	    <div class="row_1"> 
    	    
                <div class="ten_chu"><label for="name">Tên tài khoản: </label></div>
                <div class="input_popup" ><input type="text" name="taikhoan_laylaipass" id="taikhoan_laylaipass" class="required text ui-widget-content ui-corner-all input" /></div>
            </div>
            
            <div class="row_1" id="input_thucthi"> 
                <div class="ten_chu"><label for="name"> </label></div>
                <div class="input_popup" ><input type="button"  onclick="guimaillaylaipass()" value="Gửi yêu cầu" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" /></span> </div>
            </div>
            <div class="row_1" > 
                <div class="ten_chu"><label for="name"> </label></div>
                <div class="input_popup" ><img id="loa_ding" src="<?php echo $this->baseUrl();?>/public/images/loadding.gif "/></span> </div>
            </div>           
            
    
     </div>
    <!--  end  popup quen mat khau  -->
    
    
</div>
</div>